﻿using System;
using System.IO;

namespace SharpSqlAnalyzer.pp.print
{
	// Token: 0x02000259 RID: 601
	public class PrinterFactory
	{
		// Token: 0x06001349 RID: 4937 RVA: 0x0031E79D File Offset: 0x0031C99D
		public static TextPrinter createTextPrinter()
		{
			return (TextPrinter)PrinterFactory.createPrinter(typeof(TextPrinter));
		}

		// Token: 0x0600134A RID: 4938 RVA: 0x0031E7B3 File Offset: 0x0031C9B3
		public static TextPrinter createTextPrinter(TextWriter @out)
		{
			return (TextPrinter)PrinterFactory.createPrinter(typeof(TextPrinter), @out);
		}

		// Token: 0x0600134B RID: 4939 RVA: 0x0031E7CA File Offset: 0x0031C9CA
		public static IPrinter createPrinter(Type type, TextWriter @out)
		{
			IPrinter printer = PrinterFactory.createPrinter(type);
			printer.Out = @out;
			return printer;
		}

		// Token: 0x0600134C RID: 4940 RVA: 0x0031E7D9 File Offset: 0x0031C9D9
		public static IPrinter createPrinter(Type type)
		{
			return (IPrinter)type.GetConstructor(Type.EmptyTypes).Invoke(null);
		}
	}
}
